stock_code = ('600000','600036','600048','000001')
stock_name = ('浦发银行', '招商银行', '保利地产', '平安银行')
while True:
    search_code = input('请输入股票代码: ')
    if len(search_code) == 0:
        break
    if search_code not in stock_code:
        print('代码没有在股票池中。')
        continue
    index = stock_code.index(search_code)
    print('{} 的股票名称是: {}'.format(search_code, stock_name[index]))